package com.inspur.security.cbb3.kms.keyusage.data.service;

import com.inspur.security.cbb3.kms.keyusage.data.po.DataBean;
import javassist.NotFoundException;
import org.springframework.web.bind.MissingServletRequestParameterException;

/**
 * DataService
 *
 * @author liukai
 * @date 2020/10/20
 **/
public interface DataService {
    /**
     * 下载数据
     * @param uuid 数据id
     */
    DataBean downData(String uuid) throws MissingServletRequestParameterException,  NotFoundException;

    /**
     * 删除数据
     * @param uuid 数据id
     * @return 删除结果
     */
    void deleteData(String uuid) throws MissingServletRequestParameterException,  NotFoundException;

}
